conf = require("../config")
if not conf.vim_easy_align.enabled then return {} end

vim.g.easy_align_delimiters = {
  ['('] = {
    pattern = '(',
    left_margin = 1;
    right_margin = 0;
    stick_to_left = 0;
  },
  [')'] = {
    pattern = ')',
    left_margin = 0;
    right_margin = 0;
    stick_to_left = 0;
  }
}

return {
  "junegunn/vim-easy-align",
  version = "*",
  keys = {
    {"ga", "<Plug>(EasyAlign)", mode = {"n", "x"}, desc = "Start interactive EasyAlign"}
  },
}
